package com.faxsun.admin.service;

import java.util.List;

import org.broadleafcommerce.core.catalog.domain.Product;
import org.broadleafcommerce.core.order.domain.OrderItemAttribute;

public interface TreasureService {

	public Long generateWinningNumberForProduct(Product product, Long seedNumber, Integer... range);

	public void setWinningNumberForProduct(Product product, Long winningNumber) throws Exception;

	public void findAndSaveTreasureWinnerByProduct(Product product,
			List<OrderItemAttribute> orderItemAttributes);

	public List<Product> list();

}
